﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Com.JunCaiSoft.Common.IDao
{
    public interface IDeleteDao<T> : IDataCoreAccessObject<T> where T : class, new()
    {
        int Delete(object id);
        int Delete(T t);
        int DeleteList(Expression<Func<T, bool>> where);
        int DeleteList(List<T> deleteList);

        int Delete<TEntity>(object id) where TEntity : class, new();
        int Delete<TEntity>(TEntity t) where TEntity : class, new();
        int DeleteList<TEntity>(Expression<Func<TEntity, bool>> where) where TEntity : class, new();
        int DeleteList<TEntity>(List<TEntity> deleteList) where TEntity : class, new();
    }
}
